package com.meiyou.pojo;

import java.util.ArrayList;
import java.util.List;

public class MeiyouHongbaoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MeiyouHongbaoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andHIdIsNull() {
            addCriterion("h_id is null");
            return (Criteria) this;
        }

        public Criteria andHIdIsNotNull() {
            addCriterion("h_id is not null");
            return (Criteria) this;
        }

        public Criteria andHIdEqualTo(Integer value) {
            addCriterion("h_id =", value, "hId");
            return (Criteria) this;
        }

        public Criteria andHIdNotEqualTo(Integer value) {
            addCriterion("h_id <>", value, "hId");
            return (Criteria) this;
        }

        public Criteria andHIdGreaterThan(Integer value) {
            addCriterion("h_id >", value, "hId");
            return (Criteria) this;
        }

        public Criteria andHIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("h_id >=", value, "hId");
            return (Criteria) this;
        }

        public Criteria andHIdLessThan(Integer value) {
            addCriterion("h_id <", value, "hId");
            return (Criteria) this;
        }

        public Criteria andHIdLessThanOrEqualTo(Integer value) {
            addCriterion("h_id <=", value, "hId");
            return (Criteria) this;
        }

        public Criteria andHIdIn(List<Integer> values) {
            addCriterion("h_id in", values, "hId");
            return (Criteria) this;
        }

        public Criteria andHIdNotIn(List<Integer> values) {
            addCriterion("h_id not in", values, "hId");
            return (Criteria) this;
        }

        public Criteria andHIdBetween(Integer value1, Integer value2) {
            addCriterion("h_id between", value1, value2, "hId");
            return (Criteria) this;
        }

        public Criteria andHIdNotBetween(Integer value1, Integer value2) {
            addCriterion("h_id not between", value1, value2, "hId");
            return (Criteria) this;
        }

        public Criteria andHUCountIsNull() {
            addCriterion("h_u_count is null");
            return (Criteria) this;
        }

        public Criteria andHUCountIsNotNull() {
            addCriterion("h_u_count is not null");
            return (Criteria) this;
        }

        public Criteria andHUCountEqualTo(String value) {
            addCriterion("h_u_count =", value, "hUCount");
            return (Criteria) this;
        }

        public Criteria andHUCountNotEqualTo(String value) {
            addCriterion("h_u_count <>", value, "hUCount");
            return (Criteria) this;
        }

        public Criteria andHUCountGreaterThan(String value) {
            addCriterion("h_u_count >", value, "hUCount");
            return (Criteria) this;
        }

        public Criteria andHUCountGreaterThanOrEqualTo(String value) {
            addCriterion("h_u_count >=", value, "hUCount");
            return (Criteria) this;
        }

        public Criteria andHUCountLessThan(String value) {
            addCriterion("h_u_count <", value, "hUCount");
            return (Criteria) this;
        }

        public Criteria andHUCountLessThanOrEqualTo(String value) {
            addCriterion("h_u_count <=", value, "hUCount");
            return (Criteria) this;
        }

        public Criteria andHUCountLike(String value) {
            addCriterion("h_u_count like", value, "hUCount");
            return (Criteria) this;
        }

        public Criteria andHUCountNotLike(String value) {
            addCriterion("h_u_count not like", value, "hUCount");
            return (Criteria) this;
        }

        public Criteria andHUCountIn(List<String> values) {
            addCriterion("h_u_count in", values, "hUCount");
            return (Criteria) this;
        }

        public Criteria andHUCountNotIn(List<String> values) {
            addCriterion("h_u_count not in", values, "hUCount");
            return (Criteria) this;
        }

        public Criteria andHUCountBetween(String value1, String value2) {
            addCriterion("h_u_count between", value1, value2, "hUCount");
            return (Criteria) this;
        }

        public Criteria andHUCountNotBetween(String value1, String value2) {
            addCriterion("h_u_count not between", value1, value2, "hUCount");
            return (Criteria) this;
        }

        public Criteria andHUBcountIsNull() {
            addCriterion("h_u_bcount is null");
            return (Criteria) this;
        }

        public Criteria andHUBcountIsNotNull() {
            addCriterion("h_u_bcount is not null");
            return (Criteria) this;
        }

        public Criteria andHUBcountEqualTo(String value) {
            addCriterion("h_u_bcount =", value, "hUBcount");
            return (Criteria) this;
        }

        public Criteria andHUBcountNotEqualTo(String value) {
            addCriterion("h_u_bcount <>", value, "hUBcount");
            return (Criteria) this;
        }

        public Criteria andHUBcountGreaterThan(String value) {
            addCriterion("h_u_bcount >", value, "hUBcount");
            return (Criteria) this;
        }

        public Criteria andHUBcountGreaterThanOrEqualTo(String value) {
            addCriterion("h_u_bcount >=", value, "hUBcount");
            return (Criteria) this;
        }

        public Criteria andHUBcountLessThan(String value) {
            addCriterion("h_u_bcount <", value, "hUBcount");
            return (Criteria) this;
        }

        public Criteria andHUBcountLessThanOrEqualTo(String value) {
            addCriterion("h_u_bcount <=", value, "hUBcount");
            return (Criteria) this;
        }

        public Criteria andHUBcountLike(String value) {
            addCriterion("h_u_bcount like", value, "hUBcount");
            return (Criteria) this;
        }

        public Criteria andHUBcountNotLike(String value) {
            addCriterion("h_u_bcount not like", value, "hUBcount");
            return (Criteria) this;
        }

        public Criteria andHUBcountIn(List<String> values) {
            addCriterion("h_u_bcount in", values, "hUBcount");
            return (Criteria) this;
        }

        public Criteria andHUBcountNotIn(List<String> values) {
            addCriterion("h_u_bcount not in", values, "hUBcount");
            return (Criteria) this;
        }

        public Criteria andHUBcountBetween(String value1, String value2) {
            addCriterion("h_u_bcount between", value1, value2, "hUBcount");
            return (Criteria) this;
        }

        public Criteria andHUBcountNotBetween(String value1, String value2) {
            addCriterion("h_u_bcount not between", value1, value2, "hUBcount");
            return (Criteria) this;
        }

        public Criteria andHStateIsNull() {
            addCriterion("h_state is null");
            return (Criteria) this;
        }

        public Criteria andHStateIsNotNull() {
            addCriterion("h_state is not null");
            return (Criteria) this;
        }

        public Criteria andHStateEqualTo(String value) {
            addCriterion("h_state =", value, "hState");
            return (Criteria) this;
        }

        public Criteria andHStateNotEqualTo(String value) {
            addCriterion("h_state <>", value, "hState");
            return (Criteria) this;
        }

        public Criteria andHStateGreaterThan(String value) {
            addCriterion("h_state >", value, "hState");
            return (Criteria) this;
        }

        public Criteria andHStateGreaterThanOrEqualTo(String value) {
            addCriterion("h_state >=", value, "hState");
            return (Criteria) this;
        }

        public Criteria andHStateLessThan(String value) {
            addCriterion("h_state <", value, "hState");
            return (Criteria) this;
        }

        public Criteria andHStateLessThanOrEqualTo(String value) {
            addCriterion("h_state <=", value, "hState");
            return (Criteria) this;
        }

        public Criteria andHStateLike(String value) {
            addCriterion("h_state like", value, "hState");
            return (Criteria) this;
        }

        public Criteria andHStateNotLike(String value) {
            addCriterion("h_state not like", value, "hState");
            return (Criteria) this;
        }

        public Criteria andHStateIn(List<String> values) {
            addCriterion("h_state in", values, "hState");
            return (Criteria) this;
        }

        public Criteria andHStateNotIn(List<String> values) {
            addCriterion("h_state not in", values, "hState");
            return (Criteria) this;
        }

        public Criteria andHStateBetween(String value1, String value2) {
            addCriterion("h_state between", value1, value2, "hState");
            return (Criteria) this;
        }

        public Criteria andHStateNotBetween(String value1, String value2) {
            addCriterion("h_state not between", value1, value2, "hState");
            return (Criteria) this;
        }

        public Criteria andHMeijinIsNull() {
            addCriterion("h_meijin is null");
            return (Criteria) this;
        }

        public Criteria andHMeijinIsNotNull() {
            addCriterion("h_meijin is not null");
            return (Criteria) this;
        }

        public Criteria andHMeijinEqualTo(Double value) {
            addCriterion("h_meijin =", value, "hMeijin");
            return (Criteria) this;
        }

        public Criteria andHMeijinNotEqualTo(Double value) {
            addCriterion("h_meijin <>", value, "hMeijin");
            return (Criteria) this;
        }

        public Criteria andHMeijinGreaterThan(Double value) {
            addCriterion("h_meijin >", value, "hMeijin");
            return (Criteria) this;
        }

        public Criteria andHMeijinGreaterThanOrEqualTo(Double value) {
            addCriterion("h_meijin >=", value, "hMeijin");
            return (Criteria) this;
        }

        public Criteria andHMeijinLessThan(Double value) {
            addCriterion("h_meijin <", value, "hMeijin");
            return (Criteria) this;
        }

        public Criteria andHMeijinLessThanOrEqualTo(Double value) {
            addCriterion("h_meijin <=", value, "hMeijin");
            return (Criteria) this;
        }

        public Criteria andHMeijinIn(List<Double> values) {
            addCriterion("h_meijin in", values, "hMeijin");
            return (Criteria) this;
        }

        public Criteria andHMeijinNotIn(List<Double> values) {
            addCriterion("h_meijin not in", values, "hMeijin");
            return (Criteria) this;
        }

        public Criteria andHMeijinBetween(Double value1, Double value2) {
            addCriterion("h_meijin between", value1, value2, "hMeijin");
            return (Criteria) this;
        }

        public Criteria andHMeijinNotBetween(Double value1, Double value2) {
            addCriterion("h_meijin not between", value1, value2, "hMeijin");
            return (Criteria) this;
        }

        public Criteria andHMessageIsNull() {
            addCriterion("h_message is null");
            return (Criteria) this;
        }

        public Criteria andHMessageIsNotNull() {
            addCriterion("h_message is not null");
            return (Criteria) this;
        }

        public Criteria andHMessageEqualTo(String value) {
            addCriterion("h_message =", value, "hMessage");
            return (Criteria) this;
        }

        public Criteria andHMessageNotEqualTo(String value) {
            addCriterion("h_message <>", value, "hMessage");
            return (Criteria) this;
        }

        public Criteria andHMessageGreaterThan(String value) {
            addCriterion("h_message >", value, "hMessage");
            return (Criteria) this;
        }

        public Criteria andHMessageGreaterThanOrEqualTo(String value) {
            addCriterion("h_message >=", value, "hMessage");
            return (Criteria) this;
        }

        public Criteria andHMessageLessThan(String value) {
            addCriterion("h_message <", value, "hMessage");
            return (Criteria) this;
        }

        public Criteria andHMessageLessThanOrEqualTo(String value) {
            addCriterion("h_message <=", value, "hMessage");
            return (Criteria) this;
        }

        public Criteria andHMessageLike(String value) {
            addCriterion("h_message like", value, "hMessage");
            return (Criteria) this;
        }

        public Criteria andHMessageNotLike(String value) {
            addCriterion("h_message not like", value, "hMessage");
            return (Criteria) this;
        }

        public Criteria andHMessageIn(List<String> values) {
            addCriterion("h_message in", values, "hMessage");
            return (Criteria) this;
        }

        public Criteria andHMessageNotIn(List<String> values) {
            addCriterion("h_message not in", values, "hMessage");
            return (Criteria) this;
        }

        public Criteria andHMessageBetween(String value1, String value2) {
            addCriterion("h_message between", value1, value2, "hMessage");
            return (Criteria) this;
        }

        public Criteria andHMessageNotBetween(String value1, String value2) {
            addCriterion("h_message not between", value1, value2, "hMessage");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}